package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年6月22日 下午5:08:46 
 * 类说明 
 */
public class PsCWfDmcDtlPrimary implements Serializable {

	private static final long serialVersionUID = 8213410886457834131L;
	
	private String cTransactionNbr;

	private String calPrdId;

	public String getcTransactionNbr() {
		return cTransactionNbr;
	}

	public void setcTransactionNbr(String cTransactionNbr) {
		this.cTransactionNbr = cTransactionNbr;
	}

	public String getCalPrdId() {
		return calPrdId;
	}

	public void setCalPrdId(String calPrdId) {
		this.calPrdId = calPrdId;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cTransactionNbr == null) ? 0 : cTransactionNbr.hashCode());
		result = prime * result
				+ ((calPrdId == null) ? 0 : calPrdId.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PsCWfDmcDtlPrimary other = (PsCWfDmcDtlPrimary) obj;
		if (cTransactionNbr == null) {
			if (other.cTransactionNbr != null)
				return false;
		} else if (!cTransactionNbr.equals(other.cTransactionNbr))
			return false;
		if (calPrdId == null) {
			if (other.calPrdId != null)
				return false;
		} else if (!calPrdId.equals(other.calPrdId))
			return false;
		return true;
	}
	
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	

}
 